home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 146 / 146.d81 / b.fs printer (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  3KB  |  78 lines

  1. 10 print"[147]":poke53280,0:poke53281,0:gosub60000
  2. 20 poke51,0:poke52,110:poke55,0:poke56,110:clr:tem=36864:ml=32768
  3. 30 sb=53265:dv=peek(186):ifdv<8thendv=8
  4. 40 sys57812"fvtoolbox 9000",dv,0:poke780,0:poke781,0:poke782,144:sys65493
  5. 50 system+30,"fs printer/ml",dv,32768
  6. 60 vl$="                      "
  7. 70 pk$="press any key to continue"
  8. 80 :
  9. 90 pokesb,peek(sb)and239:print"[147]"chr$(142)chr$(8)
  10. 100 print"[129]"tab(9)vl$:printtab(9)"[158] font studio printer  ":printtab(9)"[129]"vl$
  11. 110 system+18,216:pokesb,peek(sb)or16:pd=0
  12. 120 :
  13. 130 system+21,216:ifpdthen170
  14. 140 gosub380:pd=1:iffl=1then140
  15. 150 ifflthenpd=0:goto130
  16. 160 :
  17. 170 sysml
  18. 180 system+15,16,23,11,15,160,7:system+15,9,30,16,19,160,7:print"[158]";
  19. 190 fori=0to3:system+24,18,12+i,str$(8+i):next
  20. 200 system+24,14,17,"select drive ":print:printtab(13)"for font disks"
  21. 210 system+48,12,18,21,4,7,7,0
  22. 220 fdv=f%+7:close2:open2,fdv,2:close2
  23. 230 ifstthen210
  24. 240 system+21,216:system,"$:f.*",fdv,53248,10,8,8,8,3:iff$=""then490
  25. 250 ifval(e$)=0then270
  26. 260 gosub460:goto200
  27. 270 poke862,0:system+21,216
  28. 280 system+30,f$,fdv,49152
  29. 290 ifval(e$)=0then310
  30. 300 gosub460:goto130
  31. 310 system+24,6,10,"check printer & paper supply":print:print
  32. 320 printtab(7)pk$:gosub440
  33. 330 poke863,0
  34. 340 open4,4,0:print#4:print#4
  35. 350 sysml+3
  36. 360 open4,4,0:fori=1to2:print#4:next:close4:goto130
  37. 370 :
  38. 380 fl=0:system+30,"pd.f v",dv,826:ifval(e$)=62then410
  39. 390 ifval(e$)=0thenreturn
  40. 400 gosub460:system+21,216:return
  41. 410 fl=2:system+24,8,10,"no printer driver found":print
  42. 420 printtab(12)"try another disk":printtab(7)""pk$
  43. 430 :
  44. 440 poke198,0:wait198,1:poke198,0:return:
  45. 450 :
  46. 460 tb=20-len(e$)/2:system+24,tb,14,"":printe$
  47. 470 printtab(7)"press any key to continue":fl=1:goto440
  48. 480 :
  49. 490 system+24,6,21,"[154]no font files found/selected":print
  50. 500 printtab(10)"do you want to quit?"
  51. 510 printtab(18)"y/n";:system+45,"yn":iff%=2then130
  52. 520 goto40000
  53. 530 :
  54. 10000 open15,dv,15,"s0:f/s printer":close15:save"f/s printer",dv:end
  55. 10010 :
  56. 40000 fori=0to21:poke828+i,8+i:next
  57. 40010 ifdv<8ordv>29ordv=8then40030
  58. 40020 a=peek(828):b=peek(828+dv-8):poke828,b:poke828+dv-8,a
  59. 40030 a$="hello connect":forj=8to29:i=peek(828+j-8):ifi=14thennext
  60. 40040 close2:open2,i,2:close2:ifstthen40060
  61. 40050 close15:open15,i,15,"r0:"+a$+"="+a$:input#15,er:close15:ifer=63then40070
  62. 40060 next:print"[147]":poke53272,23:poke186,8:end
  63. 40070 q$=chr$(34):poke646,peek(53281):print"[147]":poke53272,23
  64. 40080 print"[147]p[207]2048,0:p[207]44,8:p[207]43,1:p[207]56,160:p[207]55,0:clr:l[207]"q$a$q$","i
  65. 40090 print"run:":poke631,13:poke632,13:poke198,2:end
  66. 40100 :
  67. 60000 print"[147]":z$=" [152]                                      ":poke214,10:print
  68. 60010 print" [155][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184]":fori=0to9:printz$:next
  69. 60020 print" [151][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][152]"
  70. 60030 z$(0)="[198] [207] [206] [212]  [211] [212] [213] [196] [201] [207]  [208] [210] [201] [206] [212] [197] [210]" :z$(1)="by [194]ob [205]arkland"
  71. 60040 z$(2)="([195]) 1996 by [202] & [198] [208]ublishing, [201]nc."+chr$(13)
  72. 60050 z$(3)="[212]his program is the copyrighted work
  73. 60060 z$(4)[178]"of mid$ & asc (NULL)ublishing, right$nc.  right$t is not"
  74. 60070 z$(5)[178]"shareware or in the public domain."
  75. 60080 z$(6)[178]"1-800-594-3370 or 1-318-221-8718
  76. 60090 poke214,12:print
  77. 60100 fori=0to6:printtab(20-(len(z$(i))/2))""z$(i):next:return
  78.